package com.kangye.learnteacher.service.impl;

import com.kangye.learnteacher.entity.User;
import com.kangye.learnteacher.mapper.LoginMapper;
import com.kangye.learnteacher.service.loginService;
import com.kangye.learnteacher.util.RedisStorageUtil;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.concurrent.TimeUnit;

/**
 * @program: learndeduo
 * @description: 登录服务层实现类
 * @author: 李豪杰
 * @create: 2021-05-17 09:18
 **/
@Service
public class loginServiceImpl implements loginService {

    @Autowired
    private LoginMapper userlogin;

    @Autowired
    private RedisStorageUtil redisStorageUtil;

    /**
     * 用户登录
     * @param UserName
     * @return user
     */
    @Override
    public User userLogin(String UserName) {
        User user = userlogin.userLogin(UserName);

        return user;
    }
}
